﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using TMDT_Nhom1A.DTO;
using TMDT_Nhom1A.DAO;
using System.Collections.Generic;

namespace TMDT_Nhom1A.BUS
{
    public class RegisterWebserviceBUS
    {
        public static bool RegisterWebservice(REGISTRY_WEBSERVICE register,int userId)
        {
            return RegisterWebserviceDAO.RegisterWebservice(register,userId);
        }

        public static List<REGISTRY_WEBSERVICE> getAllRegisterWebservice()
        {
            return RegisterWebserviceDAO.getAllRegisterWebservice();
        }

        public static bool activateRegisterWebservice(int registerWebserviceID)
        {
            return RegisterWebserviceDAO.activateRegisterWebservice(registerWebserviceID);
        }

        public static bool allowOrNotAllowUsingRegisterWebservice(int registerWebserviceID,int status)
        {
            return RegisterWebserviceDAO.allowOrNotAllowUsingRegisterWebservice(registerWebserviceID,status);
        }
    }
}
